package cn.iocoder.yudao.module.system.controller.admin.seatreserve.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 座位预定信息 Response VO")
@Data
@ExcelIgnoreUnannotated
public class SeatReserveRespVO {

    @Schema(description = "预定状态")
    @ExcelProperty(value = "预定状态", converter = DictConvert.class)
    @DictFormat("seat_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer reserveStatus;

    @Schema(description = "签到时间")
    @ExcelProperty("签到时间")
    private LocalDateTime signTime;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "预定ID", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("预定ID")
    private Long id;

    @Schema(description = "办公室ID")
    @ExcelProperty("办公室ID")
    private Long officeId;

    @Schema(description = "预定时间段")
    @ExcelProperty("预定时间段")
    private String reserveTime;

    @Schema(description = "取消用户ID")
    @ExcelProperty("取消用户ID")
    private Long cancelUserid;

    @Schema(description = "取消时间")
    @ExcelProperty("取消时间")
    private LocalDateTime cancelTime;

    @Schema(description = "是否签到")
    @ExcelProperty(value = "是否签到", converter = DictConvert.class)
    @DictFormat("sign_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer isSign;

    @Schema(description = "预定用户", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("预定用户")
    private String reserverUsername;

    @Schema(description = "取消人姓名", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("取消人姓名")
    private String cancelUsername;

    @Schema(description = "座位id", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("座位id")
    private Long seatId;

    @Schema(description = "预定用户ID", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("预定用户ID")
    private Long reserverUserid;

    @Schema(description = "预定日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("预定日期")
    private LocalDateTime reserveDate;

}